<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>

        var arr = [];
        arr.push('frank','tom','jack','lll');
        console.log(arr);

        function myPush(arr,a1){
            console.log(arguments.length);

            arr[arr.length] = a1;
            if (arguments.length>2){
                for (var i = 2;i<arguments.length;i++){
                    arr[arr.length] = arguments[i];
                }
            }
            return arr;
        }

        var brr = ['tom'];
        brr = myPush(brr,'jack','frank','tom','lee','kindy');
        console.log(brr);



    </script>
</body>
</html>